package ml;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

public class SampleDataTest {

	@Test
	public void testSampleData() {
		String test_str = "20010102\t230900\t58.818380744\t59.2057504527\t59.3309296679\t58.7698093462\t57.0767890174\t61.3685417628\t63.274284008\t\r\n";

		SampleData sample_data = new SampleData(test_str);

		assertEquals(sample_data.get_date(), "20010102");
		assertEquals(sample_data.get_time(), "230900");

		assertEquals(sample_data.get_price(), 58.818380744, 0.001);
	}
}
